home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.19980424-19980901 / 000045_news@newsmaster….columbia.edu _Wed May 6 10:22:04 1998.msg < prev    next >
Internet Message Format  |  1998-08-31  |  2KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id KAA07744
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Wed, 6 May 1998 10:22:04 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id KAA26404
  7.     for kermit.misc@watsun; Wed, 6 May 1998 10:22:03 -0400 (EDT)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: Date Bug?
  12. Date: 6 May 1998 14:21:59 GMT
  13. Organization: Columbia University
  14. Lines: 33
  15. Message-ID: <6iprm7$s4s$1@apakabar.cc.columbia.edu>
  16. References: <6ionbf$s3g@bgtnsc01.worldnet.att.net>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:8697
  19.  
  20. In article <6ionbf$s3g@bgtnsc01.worldnet.att.net>,
  21. Bernie  <bfb@worldnet.att.net> wrote:
  22. : There's a 4 hour discrepancy between the date in C-Kermit
  23. : 6.0.192 and my linux box.  Below is the date command issued
  24. : from C-Kermit and then the command line.
  25. : How can I set these to be the same?
  26. : C-Kermit@localhost> date
  27. : Wed May  6 03:59:03 1998
  28. : C-Kermit@localhost> qui
  29. : /home/super/kermit> date
  30. : Tue May  5 23:59:08 EDT 1998
  31. I've never seen this before.  C-Kermit gets the date and time
  32. (as you might expect) by asking the operating system.  The
  33. DATE command simply prints the string returned by the OS.
  34.  
  35. The exact method for getting the date depends on the operating
  36. system.  In most forms of UNIX, the method is to call time(0),
  37. which returns GMT, and then convert to a local-time string by
  38. passing the time(0) result to ctime(), which is supposed to
  39. return local time.
  40.  
  41. It looks like there might be some confusion about this on your
  42. computer.  Locally (in the Eastern USA timezone), the Kermit
  43. "date" command returns the local date and time.
  44.  
  45. If you want to look at the code, see function ztime() in
  46. ckufio.c.
  47.  
  48. - Frank